<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Conf\ConfModel;

use Srv\Libs\ConfModel\ConfAbstract;

final class PayGooglePayConf extends ConfAbstract
{
    public const PREFIX                         = 'PAYGG.';     // 配置前缀[必定点结尾]
    private string $groupName                   = '';           // 分组名
    protected string $logPath                   = '';           // 日志路径
    protected string $notifyUrl                 = '';           // notifyUrl
    protected string $secretKeyFile             = '';           // 存储秘钥KeyFile
    protected array $allowBundleIds             = [];           // 允许支付的包名列表

    /**
     * @param array $confData
     * @param string $groupName
     */
    public function __construct(array $confData, string $groupName)
    {
        $this->init($confData);
        $this->groupName = $groupName;
    }

    /**
     * @return string
     */
    public function getGroupName(): string
    {
        return $this->groupName;
    }

    /**
     * @return string
     */
    public function getLogPath(): string
    {
        return $this->logPath;
    }

    /**
     * @return string
     */
    public function getNotifyUrl(): string
    {
        return $this->notifyUrl;
    }

    /**
     * @return string
     */
    public function getSecretKeyFile(): string
    {
        return $this->secretKeyFile;
    }

    /**
     * @return array
     */
    public function getAllowBundleIds(): array
    {
        return $this->allowBundleIds;
    }
}